import { Component, OnInit } from '@angular/core';
import { Router, NavigationExtras } from '@angular/router';

@Component({
  selector: 'app-login',
  templateUrl: './login.page.html',
  styleUrls: ['./login.page.scss'],
})
export class LoginPage implements OnInit {
  username: string;
  password: string;
  login() {
    console.log(this.username);
    console.log(this.password);
    let account: NavigationExtras = {
      queryParams: {
        "username": this.username
      }
    }
    this.router.navigate(['/tabs/home'], account)
  }
  constructor(private router: Router) { }

  ngOnInit() {
  }

}
